package com.system.vote.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.system.vote.admin.entity.SysRole;
import com.system.vote.admin.entity.TWxUserinfo;
import com.system.vote.admin.service.TWxUserinfoService;
import com.system.vote.admin.mapper.TWxUserinfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【t_wx_userinfo(微信用户表)】的数据库操作Service实现
* @createDate 2023-10-26 18:31:25
*/
@Service
public class TWxUserinfoServiceImpl extends ServiceImpl<TWxUserinfoMapper, TWxUserinfo>
    implements TWxUserinfoService{

    @Autowired
    private TWxUserinfoMapper tWxUserinfoMapper;
    @Override
    public TWxUserinfo getByPhone(String phone) {
        return getOne(new QueryWrapper<TWxUserinfo>().eq("phone", phone));
    }

    @Override
    public TWxUserinfo getPartiesTWxUserinfoByPhone(String phone) {
        return tWxUserinfoMapper.getPartiesTWxUserinfoByPhone(phone);
    }
}




